diff -urN libdlna-0.2.4.org/src/profiles.c libdlna-0.2.4/src/profiles.c
--- libdlna-0.2.4.org/src/profiles.c	2012-02-26 20:34:00.000000000 +0100
+++ libdlna-0.2.4/src/profiles.c	2014-10-13 21:44:27.000000000 +0200
@@ -287,7 +287,7 @@
     return NULL;
   }
 
-  if (av_find_stream_info (ctx) < 0)
+  if (avformat_find_stream_info (ctx, NULL) < 0)
   {
     if (dlna->verbosity)
       fprintf (stderr, "can't find stream info\n");
@@ -334,7 +334,7 @@
     p = p->next;
   }
 
-  av_close_input_file (ctx);
+  avformat_close_input (&ctx);
   free (codecs);
   return profile;
 }
